package com.atguigu.eduservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author panghl
 * @Date 2021/2/22 14:37
 * @Version 1.0
 * @Description TODO
 **/
@FeignClient("service-order")
@Component
public interface OrderClient {

    @GetMapping("/eduorder/t-order/isBuyCourse/{memberId}/{courseId}")
    public boolean isBuyCourse(@PathVariable("memberId") String memberId,
                               @PathVariable("courseId") String courseId);
}
